package com.greyu.ysj.config;



/**
 * @Description: 常量
 * @Author: gre_yu@163.com
 * @Date: Created in 0:51 2018/2/1
 */
public class Constants {
    /**
     * 存储当前登录用户id的字段名
     */
    public static final String CURRENT_USER_ID = "CURRENT_USER_ID";

    /**
     * token有效期（小时）
     */
    public static final int TOKEN_EXPIRES_HOUR = 72;

    /**
     * 存放Authorization的header字段
     */
    public static final String AUTHORIZATION = "authorization";
    
    /**
     * 语言切换
     */
    public static final String LANGUAGE = "language";
    /**
     * 图片地址 前缀
     */
    public static final String IMAGE_PREFIX_URL = "http://119.29.161.228/cloudimg/goods/";

    public static final String AVATAR_PREFIX_URL = "http://119.29.161.228/cloudimg/avatars";
    
    public static final String IMAGE_SAVE_PATH = "/usr/local/tomcat/webapps/picture/userPic";
    public static final String IDCARD_SAVE_PATH = "/usr/local/tomcat/webapps/picture/IDPic";
    
   // public static final String IMAGE_SAVE_PATH = "F:\\001";
    //public static final String IDCARD_SAVE_PATH = "F:\\001";
  
   // public static final String FILE_PATH = "D:\\gft_file\\android_app";
    public static final String FILE_PATH = "/usr/local/tomcat/webapps/dfcapp/";
    
    public static final String IOS_FILE_PATH = "/usr/local/tomcat/webapps/iosAppData/";
    
    public static final String COIN_SERVER_PATH = "http://localhost:8672/";
    public static final String COIN_SERVER_PATH1 = "http://localhost:8572/";
    public static final String COIN_SERVER_PATH2 = "http://localhost:8571/";

    
    /**
     * 客服
     */
    public static final String WE_CHAT = "";
    public static final String EMAIL = "";
    
    /**
     * 订单待发货状态
     */
    public static final int ORDER_WAIT = 0;

    /**
     * 订单配送中状态
     */
    public static final int ORDER_DISPATCHING = 1;

    /**
     * 订单确认送达状态
     */
    public static final int ORDER_FINISH = 2;

    /**
     * 订单退款中状态
     */
    public static final int ORDER_REFUNDING = 3;

    /**
     * 订单退款完成
     */
    public static final int ORDER_REFUND_SUCCESS = -1;

    /**
     * 订单退款失败
     */
    public static final int ORDER_REFUNDING_FAILURE = -2;
    
    /**
     * 用户级别
     */
    public static final int USER_LEVEL_STAR_DEFAULT = 0;//体验用户
    public static final int USER_LEVEL_STAR_1 = 1;//1星用户
    public static final int USER_LEVEL_STAR_2 = 2;//2星用户
    public static final int USER_LEVEL_STAR_3 = 3;//3星用户
    public static final int USER_LEVEL_STAR_4 = 4;//4星用户
    public static final int USER_LEVEL_STAR_5 = 5;//5星用户
    /**
     * WEB 手机验证
     */
    public static final String APP_KEY = "29777eb2c63e8";//app KEY  //29777eb2c63e8//282cca0aa8f70
    public static final String ZONE = "86";
    public static final String TEMPLATE_CODE="";
    public static final String APP_BASE_URL_SEND="https://webapi.sms.mob.com/sms/sendmsg";
    public static final String APP_BASE_URL_CHECK="https://webapi.sms.mob.com/sms/checkcode";
   
    /**
     *发送邮箱验证码
     */
  //发件人地址
    public static final String SENDER_ADDRESS = "alicbt@163.com";
    //收件人地址
    public static final String RECIPIENT_ADDRESS ="389821781@qq.com" ;
    //发件人账户名
    public static final String SENDER_ACCOUNT = "alicbt@163.com";
    //发件人账户密码
    public static final String SENDER_PASSWORD = "kaka463716789";
    
    
    
    /**
     * 正则表达式：验证手机号
     */
    public static final String REGEX_MOBILE = "^\\d{11}$";
    public static final String REGEX_MOBILEs = "^\\d{1,12}$";
 
    /**
     * 正则表达式：验证邮箱
     */
    public static final String REGEX_EMAIL = 
    		"^[a-z0-9A-Z]+([-_.][a-z0-9A-Z]+)*@([a-z0-9A-Z]+[-.])+[a-z0-9A-Z]{2,4}$";
    /**
     * 正则表达式：验证密码
     */
    public static final String REGEX_PASSWORD = "^\\w{8,20}$";
    
    /**
     * 正则表达式：验证支付密码
     */
    public static final String REGEX_PAYPASSWORD = "^[0-9]{6}$";
    
    /**
     * 正则表达式：验证昵称
     */
    public static final String REGEX_NICKNAME = "^[\\u4e00-\\u9fa5a-zA-Z0-9_]{1,6}$";
    
    /**
     * 正则表达式：验证银行卡号
     */
    public static final String REGEX_BANKCARD = "^([1-9]{1})(\\d{14}|\\d{18})$";
    
    /*
     * 默认推荐的用户信息
     */
    public static final String  DEFAULT_REFER_CODE = "000000";
    public static final int DEFAULT_REFER_ID = 00000000;
    //
    public static final int DEFAULT_CHILD_NIN = 0;
    public static final int DEFAULT_CHILD_MAX = 15;
    //gft 转出的比率
    public static final float GFT_TRANSFER_RATIO=0.06f;
    public static final float GFT_TRANSFER_MAX_VALUE=50000f;
    //转账类型
    public static final int TRANSFER_TYPE_GFT = 1;
    public static final int TRANSFER_TYPE_ETH = 0;
    //交易状态
    public static final int TRANSFER_HASH_STATUS_SUCESS = 0;
    public static final int TRANSFER_HASH_STATUS_FAIL = 1;
    public static final int TRANSFER_HASH_STATUS_PENDING = 2;
    
    //GFTstatus狀態
    public static final int GFT_TRANSFER_MINUS = 0;//GFT转账减少
    public static final int GFT_TRANSFER_ADD = 1;//GFT转账增加
    public static final int GFT_TRANSFER_INVEST_MINUS = 2;//GFT复投减少
    public static final int GFT_TRANSFER_INVEST_EXPIRE_ADD = 3;//GFT到期增加
    public static final int GFT_EXCHANGE_FROM_ETH = 4;//ETH兑换增加
    public static final int GFT_EXCHANGE_TO_ETH = 5;//兑换ETH减少
    
    public static final float GFT_INVEST_MAX_VALUE = 100000f;//兑换ETH减少
    
    public static final int CBT_EXCHANGE_TO_VOTE = 10;//cbt兑换票权数
    //最少起提数
    public static final int MIN_DRWA_AMOUNT=100;
    
    //最少投资金额1500美金
    public static final double MIN_INVEST_MONEY=1000.0;
    public static final double MAX_INVEST_MONEY=50000.0;
    public static final double AKB_INVEST_RATIO=5;
    
    //计算用户星级用
    public static final double START_ASSET_0 = 0.0;
    public static final double START_ASSET_1 = 500000.0;
    public static final double START_ASSET_2 = 500000.0;
    public static final double START_ASSET_3 = 500000.0;
    public static final double START_ASSET_4 = 500000.0;
    public static final double START_ASSET_5 = 500000.0;
    
    public static final int START_TEAM_CNT_0 = 0;
    public static final int START_TEAM_CNT_1 = 2;
    public static final int START_TEAM_CNT_2 = 2;
    public static final int START_TEAM_CNT_3 = 2;
    public static final int START_TEAM_CNT_4 = 2;
    public static final int START_TEAM_CNT_5 = 2;
    
    public static final int START_TEAM_NUM = 2;
   
}
